<!-- right-->
<div class="member-main">
<div id="demo1" class="section switch">
   <ul class="switchable-triggerBox clearfix">
        <li ><a href="<{link app=b2c ctl='site_member' act='comment'}>"><{t}>我的评论<{/t}></a></li>
        <li><a href="<{link app=b2c ctl='site_member' act='ask'}>"><{t}>我的咨询<{/t}></a></li>
        <li class="active" ><a href="#"><{t}>站内信<{/t}></a></li>
    </ul>
 <div class="switchable-content" >
     <div class="switchable-panel">
            <!--<textarea class="textarea-lazyload">-->
              <div id="demo2" class="switch" style="padding-top:0">
                <div class="site-mail">
                <ul class="switchable-triggerBox2 clearfix">
                  <li ><a href="<{link app=b2c ctl='site_member' act='send'}>"><{t}>发送消息<{/t}></a></li>
                  <li><a href="<{link app=b2c ctl='site_member' act='inbox'}>"><{t}>收件箱<{/t}></a><{if $inbox_num}><span>(<{$inbox_num}>)</span><{/if}></li>
                  <li><a href="<{link app=b2c ctl='site_member' act='track'}>"><{t}>发件箱<{/t}></a></li>
                  <li><a href="<{link app=b2c ctl='site_member' act='outbox'}>"><{t}>草稿箱<{/t}></a><{if $outbox_num}><span>(<{$outbox_num}>)</span><{/if}></li>
                  <li class="active"><{t}>给管理员发短信<{/t}></li>
                </ul>
              </div>
              </div>
    </div>

<div class="title"><{t}>给管理员留言<{/t}></div>
<form name="comment" action="<{link app=b2c ctl='site_member'  full='1' act='msgtoadmin'}>" method="post" class="section">
<{if !$reply}>
  <input type="hidden" name="comment_id" value="<{$init.comment_id}>">
  <{/if}>
  <div class="FormWrap" style="background:none; border:none; padding:0; margin:0;">
  <div class="division" style="border:none;">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forform">
  <tr>
    <th><{t}>发送给：<{/t}></th>
    <td><{input class="inputstyle" type="text" value=$___b2c="管理员"|t:'b2c' readonly="readonly" size="30" disabled="disabled"}></td>
  </tr>
  <tr>
    <th><em>*</em><{t}>标题：<{/t}></th>
    <td><{input name="subject" class="inputstyle" type="text"  vtype=required id="comment_email" size=30 value=$init.title|escape:'html'}></td>
  </tr>
</table>
  </div>

  <div style="border-top:1px solid #f1f1f1;"></div>

  <div class="division" style="border:none;">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="forform">
  <tr>
    <th><em>*</em><{t}>内容：<{/t}></th>
    <td><{input class="inputstyle font12px" type="textarea" name="comment" vtype=required cols="50" rows="5" id="commenttitle" value=$init.comment}></td>
  </tr>
  <tr>
    <th></th>
    <td><button id="Submit" onclick="send_outbox(this);return true;" class="btn submit-btn " rel="_request" type="submit"><span><span><{t}>发送<{/t}></span></span></button><!--<input type="submit" onclick="send_outbox(this);return true;" id="Submit" value="<{t}>提交留言<{/t}>">-->&nbsp;&nbsp<input id="outbox_btn" name="has_sent" type="hidden" value="true"><!--<input type="submit" onclick="send_outbox(this);return true;"id="Submit_outbox" value="<{t}>保存到草稿箱<{/t}>"-->
    <button id="Submit_outbox" onclick="send_outbox(this);return true;" class="btn" rel="_request" type="submit"><span><span><{t}>保存到草稿箱<{/t}></span></span></button>
    </td>
  </tr>
</table>
  </div>
  </div>
</form>
</div>
</div>
</div>
<!-- right-->
<script>
function send_outbox(obj)
	{
		if(obj.id == 'Submit')
		$('outbox_btn').value = 'true';
		else $('outbox_btn').value = 'false';
	}
</script>
